#include "myfunc.h"

void swap(char &a, char &b)
{
    int temp = a;
    a = b;
    b = temp;
}

void inverse(Str &str)
{
    int i = 0;
    int j = str.length - 1;
    while (i < j)
    {
        swap(str.ch[i], str.ch[j]);
        i++;
        j--;
    }
}